package com.dlwx.firefighting.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.dlwx.firefighting.R;
import com.dlwx.firefighting.config.Constant;
import com.dlwx.firefighting.utils.SPUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class TopUpActivity extends BaseActivity {

    @BindView(R.id.title_left_one_btn)
    ImageView titleLeftOneBtn;
    @BindView(R.id.tv_middle_title)
    TextView tvMiddleTitle;
    @BindView(R.id.tv_service)
    TextView tvService;
    @BindView(R.id.tv_bank_card)
    TextView tvBankCard;
    @BindView(R.id.tv_phone)
    TextView tvPhone;
    @BindView(R.id.tv_qq)
    TextView tvQq;
    @BindView(R.id.tv_remark)
    TextView tvRemark;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_top_up);
        ButterKnife.bind(this);
        String saleMan= (String) SPUtils.get(this, Constant.MALL_SALEMAN,"");
        String mallQQ= (String) SPUtils.get(this, Constant.MALL_QQ,"");
        String mallPhone= (String) SPUtils.get(this, Constant.MALL_PHONE,"");
        String mallBank= (String) SPUtils.get(this, Constant.Mall_BANK,"");
        tvService.setText("客服："+saleMan);
        tvBankCard.setText("银行账号："+mallBank);
        tvQq.setText("QQ:"+mallQQ);
        tvPhone.setText("联系电话："+mallPhone);
        initTitle();
    }

    private void initTitle() {
        titleLeftOneBtn.setVisibility(View.VISIBLE);
        tvMiddleTitle.setText("充值");
    }

    @OnClick({R.id.title_left_one_btn, R.id.tv_middle_title})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.title_left_one_btn:
                this.finish();
                break;
            case R.id.tv_middle_title:
                break;
        }
    }
}
